home *** CD-ROM | disk | FTP | other *** search
/ Aminet 41 / Aminet 41 (2001)(Schatztruhe)[!][Feb 2001].iso / Aminet / dev / c / libiconv_src.lha / Makefile.os2 < prev    next >
Encoding:
Makefile  |  2000-11-07  |  2.6 KB  |  69 lines

  1. # Makefile for libiconv, for OS2/EMX
  2. #
  3.  
  4. #### Start of system configuration section. ####
  5.  
  6. # Directories used by "make install":
  7. prefix = @prefix@
  8. exec_prefix = $(prefix)
  9. libdir = $(exec_prefix)/lib
  10. shlibdir = $(exec_prefix)/dll
  11. includedir = $(prefix)/include
  12. mandir = $(prefix)/man
  13.  
  14. #### End of system configuration section. ####
  15.  
  16. all : force
  17.     sed -e 's/@ICONV_CONST@/const/g' < include/iconv.h.in > include/iconv.h
  18.     (cd src   && $(MAKE) -f Makefile.os2 all && cd ..)
  19.     (cd man   && $(MAKE) -f Makefile.os2 all && cd ..)
  20.     (cd tests && $(MAKE) -f Makefile.os2 all && cd ..)
  21.  
  22. # Installs the library and include files only. Typically called with only
  23. # $(libdir), $(shlibdir) and $(includedir) - don't use $(prefix) and
  24. # $(exec_prefix) here.
  25. install-lib : all force
  26.     @echo install to $(libdir), $(shlibdir) and $(includedir)
  27.     cp include/iconv.h $(includedir)/iconv.h
  28.     (cd src && $(MAKE) -f Makefile.os2 install-lib libdir='$(libdir)' shlibdir='$(shlibdir)' includedir='$(includedir)' && cd ..)
  29.     
  30. install : force
  31.     @echo install to $(prefix)
  32.     cp include/iconv.h $(includedir)/iconv.h
  33.     (cd src && $(MAKE) -f Makefile.os2 install prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
  34.     (cd man && $(MAKE) -f Makefile.os2 install prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)' && cd ..)
  35.  
  36. uninstall : force
  37.     rm -i $(includedir)/iconv.h
  38.     (cd src && $(MAKE) -f Makefile.os2 uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' libdir='$(libdir)' shlibdir='$(shlibdir)' && cd ..)
  39.     (cd man && $(MAKE) -f Makefile.os2 uninstall prefix='$(prefix)' exec_prefix='$(exec_prefix)' mandir='$(mandir)' && cd ..)
  40.  
  41. check : force
  42.     (cd src   && $(MAKE) -f Makefile.os2 check && cd ..)
  43.     (cd man   && $(MAKE) -f Makefile.os2 check && cd ..)
  44.     (cd tests && $(MAKE) -f Makefile.os2 check && cd ..)
  45.  
  46. mostlyclean : force
  47.     (cd src   && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
  48.     (cd man   && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
  49.     (cd tests && $(MAKE) -f Makefile.os2 mostlyclean && cd ..)
  50.  
  51. clean : force
  52.     (cd src   && $(MAKE) -f Makefile.os2 clean && cd ..)
  53.     (cd man   && $(MAKE) -r Makefile.os2 clean && cd ..)
  54.     (cd tests && $(MAKE) -r Makefile.os2 clean && cd ..)
  55.  
  56. distclean : force
  57.     (cd src   && $(MAKE) -f Makefile.os2 distclean && cd ..)
  58.     (cd man   && $(MAKE) -f Makefile.os2 distclean && cd ..)
  59.     (cd tests && $(MAKE) -f Makefile.os2 distclean && cd ..)
  60.     rm -f include/iconv.h
  61.  
  62. maintainer-clean : force
  63.     (cd src   && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
  64.     (cd man   && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
  65.     (cd tests && $(MAKE) -f Makefile.os2 maintainer-clean && cd ..)
  66.     rm -f include/iconv.h
  67.  
  68. force :
  69.